package com.tensquare.friend.service;

import com.tensquare.friend.dao.NoFrienDao;
import com.tensquare.friend.pojo.NoFriend;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zzb
 * @version 1.0
 * @create 2020/12/24 15:12
 */
@Service
public class NoFriendService {
    @Autowired
    private NoFrienDao noFrienDao;
    //添加非好友
    public void addNoFriend(String id, String friendid) {
        NoFriend noFriend = new NoFriend();
        noFriend.setUserid(id);
        noFriend.setFriendid(friendid);
        noFrienDao.save(noFriend);
    }
}
